import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-enter',
  templateUrl: './enter.component.html',
  styleUrls: ['./enter.component.css'],
})
export class EnterComponent implements OnInit {
 isShow=true;//默认显示
  constructor(
    private router:Router
  ) { }

  ngOnInit() {

  }
  // 进行路由跳转
  goTo(path){
    this.isShow=false;
    this.router.navigate([path]);
  }

}
